/* 页面信息 */
export const Page = {
  /* 表格展示部分 */
  tableHeader: [
    {
      title: "订单状态",
      value: "order_status",
      width: "120px",
    },
    {
      title: "订单类型",
      value: "order_type",
      width: "120px",
    },
    {
      title: "发货状态",
      value: "ship_style",
      width: "120px",
      fixed: true,
    },
    {
      title: "订单号",
      value: "orderId",
      width: "150px",
      fixed: true,
    },
    {
      title: "收货人",
      value: "buyer_name",
      width: "120px",
      fixed: true,
    },
    {
      title: "电话",
      value: "phone",
      width: "140px",
      fixed: true,
    },
    {
      title: "收货信息",
      value: "address",
      width: "300px",
      fixed: true,
    },
    {
      title: "产品",
      value: "sku_name",
      width: "220px",
      fixed: false,
    },
    {
      title: "箱单",
      value: "print_PDF",
      width: "140px",
      fixed: false,
    },
    {
      title: "下单时间",
      value: "order_time",
      width: "160px",
      fixed: false,
    },
    {
      title: "支付金额",
      value: "pay_price",
      width: "140px",
      fixed: false,
    },
    {
      title: "结算金额",
      value: "settle_price",
      width: "150px",
      fixed: false,
    },
    {
      title: "订单台数",
      value: "sku_num",
      width: "140px",
      fixed: false,
    },
    {
      title: "库存发货数量",
      value: "new_order_ship_num",
      width: "150px",
      fixed: false,
    },
    {
      title: "库存单价",
      value: "stock_unit_price",
      width: "120px",
      fixed: false,
    },
    {
      title: "直采发货数量",
      value: "direct_ship_num",
      width: "180px",
      fixed: false,
      IsUpdata: true,
      IsType: "input",
    },
    {
      title: "直采发货单价",
      value: "direct_ship_unit_price",
      width: "150px",
      fixed: false,
      IsUpdata: true,
      IsType: "input",
    },
    {
      title: "合计发货数量",
      value: "total_ship_num",
      width: "180px",
      fixed: false,
    },
    {
      title: "发货人",
      value: "ship_person",
      width: "160px",
      fixed: false,
      IsUpdata: true,
      IsType: "input",
    },
    {
      title: "发货时间",
      value: "ship_time",
      width: "150px",
      fixed: false,
      IsUpdata: true,
      IsType: "time",
    },
    {
      title: "发货快递",
      value: "ship_name_str",
      width: "150px",
      fixed: false,
      IsUpdata: true,
      IsType: "input",
    },
    {
      title: "发货快递订单号",
      value: "ship_no",
      width: "180px",
      fixed: false,
      IsUpdata: true,
      IsType: "input",
    },
    {
      title: "货品总价",
      value: "sku_total_price",
      width: "150px",
      fixed: false,
    },
    {
      title: "发货运费",
      value: "ship_price",
      width: "150px",
      fixed: false,
      IsUpdata: true,
      IsType: "input",
    },
    {
      title: "成本合计",
      value: "total_price",
      width: "150px",
      fixed: false,
    },
    {
      title: "备注说明",
      value: "remark",
      width: "140px",
      fixed: false,
      IsUpdata: true,
      IsType: "input",
    },
  ],
  /* 弹窗表单 */
  Dialog: {
    /* 新增发货流转单 */
    CreateDialog: {
      DialogTtile: "新增发货流转单", // 弹窗标题
      DialogConfirmText: "确认新增", // 弹窗确认按钮文字
      FormLabelWidth: "120px",
      DialogForm: {
        order_id: "",
      },
      rules:{
        order_id: [
          { required: true, message: '请选择关联运营订单', trigger: 'blur' },
        ],
      },
      DialogFormType: [
        {
          name: "订单号",
          value: "order_id",
          ShowValue:'选择订单',
          Search:true,
          type: "No",
          GetApi: "getQwOrderSelect",
          placeholder: "请选择关联运营订单",
          required: true,
          tableHeader: [
            {
              title: "订单类型",
              value: "order_type",
              width: "120px",
            },
            {
              title: "订单id",
              value: "order_id",
              width: "140px",
              IsUpdata: true,
            },
            {
              title: "收货人 ",
              value: "buyer_name",
              width: "140px",
            },
            {
              title: "sku",
              value: "sku_id",
              width: "140px",
            },
            {
              title: "产品名称",
              value: "sku_name",
              width: "180px",
            },
          ],
        },
      ],
    },
    /* 直采发货修改弹窗的信息 */
    UpdataDialog: {
      DialogTtile: "直采发货", // 弹窗标题
      DialogConfirmText: "确认直采发货", // 弹窗确认按钮文字
      FormLabelWidth: "120px",
      DialogForm: {
        orderId: "",
        direct_ship_num: "",
        direct_ship_unit_price: "",
        ship_person: "",
        ship_time: "",
        ship_name: "",
        ship_no: "",
        ship_price: "",
        remark: "",
      },
      rules:{
        direct_ship_num: [
          { required: true, message: '请填写直采发货数量', trigger: 'blur' },
        ],
        direct_ship_unit_price: [
          { required: true, message: '请填写直采发货单价', trigger: 'blur' },
        ],
        ship_person: [
          { required: true, message: '请填写发货人', trigger: 'blur' },
        ],
        ship_time: [
          { required: true, message: '请选择发货时间', trigger: 'blur' },
        ],
        ship_name: [
          { required: true, message: '请选择发货快递', trigger: 'blur' },
        ],
        ship_no: [
          { required: true, message: '请填写快递单号', trigger: 'blur' },
        ],
      },
      DialogFormType: [
        {
          name: "订单号",
          value: "orderId",
          type: "text",
        },
        {
          name: "直采发货数量",
          value: "direct_ship_num",
          type: "input",
          placeholder: "请输入直采发货数量",
          required: true,
        },
        {
          name: "直采发货单价",
          value: "direct_ship_unit_price",
          type: "input",
          placeholder: "请输入直采发货单价",
          required: true,
        },
        {
          name: "发货人",
          value: "ship_person",
          type: "input",
          placeholder: "请输入发货人",
          required: true,
        },
        {
          name: "发货时间",
          value: "ship_time",
          type: "time",
          placeholder: "请选择发货时间",
          required: true,
        },
        {
          name: "发货快递",
          value: "ship_name",
          type: "select",
          placeholder: "请输入发货快递",
          required: true,
          options: [],
        },
        {
          name: "快递单号",
          value: "ship_no",
          type: "input",
          placeholder: "请填写快递单号",
          required: true,
        },
        {
          name: "快递运费",
          value: "ship_price",
          type: "input",
          placeholder: "请填写快递运费",
          required: true,
        },
        {
          name: "备注说明",
          value: "remark",
          type: "input",
          placeholder: "请填写备注",
        },
      ],
    },
    /* 库存发货修改弹窗信息 */
    SendDialog: {
      DialogTtile: "库存发货", // 弹窗标题
      DialogConfirmText: "确认库存发货", // 弹窗确认按钮文字
      FormLabelWidth: "120px",
      DialogForm: {
        orderId: "",
        direct_ship_num: "",
        direct_ship_unit_price: "",
        inventory: "",
        ship_person: "",
        ship_time: "",
        ship_name: "",
        ship_no: "",
        ship_price: "",
        remark: "",
      },
      rules:{
        inventory: [
          { required: true, message: '请选择库存', trigger: 'blur' },
        ],
        direct_ship_num: [
          { required: true, message: '请填写直采发货数量', trigger: 'blur' },
        ],
        direct_ship_unit_price: [
          { required: true, message: '请填写直采发货单价', trigger: 'blur' },
        ],
        ship_person: [
          { required: true, message: '请填写发货人', trigger: 'blur' },
        ],
        ship_time: [
          { required: true, message: '请选择发货时间', trigger: 'blur' },
        ],
        ship_name: [
          { required: true, message: '请选择发货快递', trigger: 'blur' },
        ],
        ship_no: [
          { required: true, message: '请填写快递单号', trigger: 'blur' },
        ],
      },
      DialogFormType: [
        {
          name: "订单号",
          value: "orderId",
          type: "text",
        },
        {
          name: "库存",
          value: "inventory",
          ShowValue: "换货选择库存",
          type: "No",
          Search:true,
          GetApi: "GetShipStockListBySku",
          placeholder: "选择",
          required: true,
          tableHeader: [
            {
              title: "供应商名称",
              value: "supplier_name",
              IsUpdata: true,
            },
            {
              title: "仓库类型",
              value: "warehouse_name",
            },
            {
              title: "SKU",
              value: "sku",
            },
            {
              title: "商品名称",
              value: "sku_name",
            },
            {
              title: "正品库存",
              value: "quality_stock",
            },
          ],
        },
        {
          name: "发货人",
          value: "ship_person",
          type: "input",
          placeholder: "请输入发货人",
          required: true,
        },
        {
          name: "发货时间",
          value: "ship_time",
          type: "time",
          placeholder: "请选择发货时间",
          required: true,
        },
        {
          name: "发货快递",
          value: "ship_name",
          type: "select",
          placeholder: "请输入发货快递",
          required: true,
          options: [],
        },
        {
          name: "快递单号",
          value: "ship_no",
          type: "input",
          placeholder: "请填写快递单号",
          required: true,
        },
        {
          name: "快递运费",
          value: "ship_price",
          type: "input",
          placeholder: "请填写快递运费",
          required: true,
        },
        {
          name: "备注说明",
          value: "remark",
          type: "input",
          placeholder: "请填写备注",
        },
      ],
    },
  },
};
